package com.hsgene.supplier.exception;

import com.hsgene.common.util.exception.ErrorCode;

/**
 * 供应商错误码定义
 *
 * @author wangbing
 * @version 1.0, 2018/7/12
 */
public enum SupplierErrorCode implements ErrorCode {

    /**
     * 机构已存在
     */
    SUPPLIER_NAME_EXISTED(11001, "Error_Supplier_Supplier_Name_Existed", "机构已存在"),

    SUPPLIER_NOT_EXISTED(11002, "Error_Supplier_Not_Existed", "检测机构不存在"),

    SUPPLIER_ACCOUNT_NOT_EXISTED(11002, "Error_Supplier_Account_Not_Existed", "检测机构管理员不存在"),
    THE_FORM_IS_EMPTY(11003, "the_form_is_empty", "表格值为空"),
    ENCRYPTION_SERVICE_ERROR(11004, "encryption_service_error", "密码加密服务出错"),
    ZONE_INTERFACE_CONNECTION_FAILED(11005, "zone_interface_connection_failed", "区域模块失败"),
    INSTITUTION_ALREADY_EXISTS(11006, "INSTITUTION_ALREADY_EXISTS", "机构已存在"),
    PLEASE_ENTER_THE_CORRECT_PHONE_NUMBER(11007,"PLEASE_ENTER_THE_CORRECT_PHONE_NUMBER","请输入正确的手机号码"),
    ID_IS_EMPTY(11008,"ID_IS_EMPTY","ids为空");
    private final int code;

    private final String message;

    private final String description;

    SupplierErrorCode(int code, String message, String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
